Answer:

Yes.

Dot Notation

The various things an object contains—its variables and its methods—are called the members of that object. The members of an object are accessed using dot notation, which looks like this:

objectReference . memberName

Usually the objectReference is contained in a variable, but not always. If you want to run a method of the object, use the method name. If it needs parameters (values supplied to the method), they go inside ( ) like this:

objectReference . methodName( parameter )

Always use ( ) with a method name, even if it needs no parameters.

QUESTION 9:

Does the length() method need a parameter?